Note
Go to the end to download the full example code.
606 m Mega-tall BuildingΒΆ
See the original tcl file of the model in OpenSees models for a 606 m Mega-tall Building,
and a python file converted by opstool.pre.tcl2py() that you can download from here
https://ln5.sync.com/dl/9e3582d40/2s3k7ayf-e52anp3t-mjfa89vz-jc427xsb named MegatallBuilding.py.
import time
from utils.MegatallBuilding import *
import opstool as opst
start = time.time()
opst.post.save_model_data(odb_tag="megatall-building")
end = time.time()
print("Data Saving: Time elapsed: ", end - start, " s")
OPSTOOL :: Model data has been saved to G:\opstool\docs\.opstool.output/ModelData-megatall-building.zarr!
Data Saving: Time elapsed: 2.5735325813293457 s
opst.vis.pyvista.set_plot_props(point_size=0, line_width=0.5)
start = time.time()
plotter = opst.vis.pyvista.plot_model(odb_tag="megatall-building")
plotter.show()
# plotter.show()
end = time.time()
print("Pyvista-Based: Time elapsed: ", end - start, " s")

OPSTOOL :: Loading model data from G:\opstool\docs\.opstool.output/ModelData-megatall-building.zarr ...
Pyvista-Based: Time elapsed: 1.2143299579620361 s
opst.vis.plotly.set_plot_props(point_size=0, line_width=0.4)
start = time.time()
fig = opst.vis.plotly.plot_model(odb_tag="megatall-building", show_outline=False)
# fig.show(renderer="browser")
end = time.time()
print("Plotly-Based: Time elapsed: ", end - start, " s")
fig
OPSTOOL :: Loading model data from G:\opstool\docs\.opstool.output/ModelData-megatall-building.zarr ...
Plotly-Based: Time elapsed: 1.8235018253326416 s